<%@page import="com.epam.photographer.model.Album"%>
<%@page import="com.epam.photographer.model.PhotoWrapper"%>
<%@page import="com.epam.photographer.model.Photographer"%>
<%@page import="com.epam.photographer.DAO.Dao"%>
<%@page import="com.epam.photographer.controllers.FillController"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<html>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<head>
<title>Home</title>
</head>
<body>
	<h1>Hello world! ver3</h1>
	<%
		/* FillController contr = new FillController();
		contr.fillDB();
		Dao dao = new Dao();
		Photographer p1 = dao.getPhotographerById(1);
			PhotoWrapper pw1 = dao.getPhotoWrapperById(1);
			Album a = dao.getAlbumById(1);
			
			out.println(  p1.getName() );
			out.println(  p1.getLastName() );
			out.println(  p1.getTown() );
			
			out.println(  pw1.getTitle() );
			out.println(  pw1.getPhotographerId() );
			out.println(  a.getTitle() );
			String url = pw1.getUrl(); */
	%>
	<table>

		<td>
		<th><img height="200" width="100" src="getUserImage/1" /></th>
		<th><img height="200" width="100" src="getUserImage/2" /></th>
		</td>
		<td>
		<th><img height="200" width="100" src="getUserImage/4" /></th>
		<th><img height="200" width="100" src="getUserImage/3" /></th>
		</td>

	</table>

	<form  method="POST" enctype="multipart/form-data" action="manamana">
		File to upload: <input type="file" name="upfile"><br /> Notes
		about the file: <input type="text" name="note"><br /> <br /> <input
			type="submit" value="Press"> to upload the file!
	</form>

	<c:forEach items="${albums}" var="album">
									
album ${album.title}, photographerId ${album.photographerId},    <br />


	</c:forEach>
	<a href="${contextPath}/home2">home2</a>
	<img alt="" src="D:/Photographers/1.jpg" />
	<P>The time on the server is ${serverTime}.</P>
</body>
</html>
